$(function() {
    $('#student').datagrid({
        url: '../../user_getYourself.action',
        singleSelect: true,
        columns: [
            [{
                hidden:true,
                field: 'id',
                title: 'id',
                width: 80,
                align: 'center'
            }, {
                field: 'niceName',
                title: '姓名',
                width: 80,
                align: 'center'
            }, {
                field: 'username',
                title: '用户名',
                width: 80,
                align: 'center'
            }, {
                field: 'sex',
                title: '性别',
                width: 80,
                align: 'center'
            }, {
                field: 'phone',
                title: '联系电话',
                width: 80,
                align: 'center'
            }, {
                field: 'email',
                title: '电子邮件',
                width: 80,
                align: 'center'
            }, {
                field: 'birth',
                title: '生日',
                width: 80,
                align: 'center'
            }]
        ],
        fitColumns: true,
        pagination: true,
        pageSize: 10,
        fitColumns: true,
        striped: true,
        rownumbers: true
    });

});


    